from modelscope.models.nlp import BertModel
# from modelscope.utils.config import Config

bert_path = r'D:/aiproject/bert-base-chinese'
model = BertModel.from_pretrained(bert_path)
print(model)